package com.cloud.edu.admin.request.demo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author dehuisun
 */
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class DemoRequest  {

    private static final long serialVersionUID = 7750629946817039062L;

    @NotNull
    @ApiModelProperty(value = "名称", example = "测试", required = true)
    private String name;

    @NotNull
    @Min(1)
    @ApiModelProperty(value = "建设期", example = "3", required = true)
    private String build_period;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBuild_period() {
		return build_period;
	}

	public void setBuild_period(String build_period) {
		this.build_period = build_period;
	}
}
